<p>This rule raises an issue when <code>import</code> or <code>export</code> statements contain empty curly braces <code>{}</code>.</p>
<h2>Why is this an issue?</h2>
<p>Empty specifier lists in import and export statements serve no purpose and create unnecessary code clutter. They typically result from incomplete
refactoring or copy-paste errors.</p>
<p>When you write <code>import {} from 'module'</code>, you’re not actually importing anything from the module. If you need the module’s side effects
(like running initialization code), you should use a side-effect import: <code>import 'module'</code>.</p>
<p>Similarly, <code>export {}</code> statements without any actual exports are meaningless and should be removed.</p>
<p>These empty statements can confuse other developers and make the codebase harder to maintain. They may also indicate incomplete code changes that
need attention.</p>
<h3>What is the potential impact?</h3>
<p>This issue affects code maintainability and readability. While it doesn’t cause runtime errors, it can:</p>
<ul>
  <li> Confuse developers about the actual dependencies and exports </li>
  <li> Indicate incomplete refactoring that may hide real issues </li>
  <li> Add unnecessary noise to the codebase </li>
  <li> Make code reviews more difficult </li>
</ul>
<h3>How to fix?</h3>
<p>For imports with empty specifiers, convert to a side-effect import if you need the module’s side effects, or remove the statement entirely.</p>
<h4>Non-compliant code example</h4>
<pre data-diff-id="1" data-diff-type="noncompliant">
import {} from 'lodash'; // Noncompliant
</pre>
<h4>Compliant code example</h4>
<pre data-diff-id="1" data-diff-type="compliant">
import 'lodash'; // Side-effect import
</pre>
<h3>Documentation</h3>
<ul>
  <li> <a href="https://github.com/sindresorhus/eslint-plugin-unicorn#readme">eslint-plugin-unicorn</a> - Rule <a
  href="https://github.com/sindresorhus/eslint-plugin-unicorn/blob/HEAD/docs/rules/require-module-specifiers.md">require-module-specifiers</a> </li>
  <li> MDN - import statement - <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import">Complete guide to
  JavaScript import statements and their syntax</a> </li>
  <li> MDN - export statement - <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export">Complete guide to
  JavaScript export statements and their syntax</a> </li>
  <li> MDN - Side-effect imports - <a
  href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#import_a_module_for_its_side_effects_only">How to import
  modules for their side effects only</a> </li>
</ul>
